package com.fp.m7.api.manager;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fp.m7.api.model.Account;
import com.fp.m7.api.model.Comment;

public interface CommentManager {

	Comment createNew(Account author, String content);
	
	Comment findById(Serializable id);

	void delete(Comment comment);
	
	List<Comment> findUsersLatestComments(Account user, int maxPerPage, int pageNo);

	List<Comment> findUsersCommentsByDate(Account user, Date from, Date to);

	List<Comment> findCommentFeedForUser(Account user, int maxPerPage, int pageNo);

	int removeUsersComments(Account user);

}
